package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorCities;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorCitiesServiceInterface 
 * @Description: OperatorCitiesServiceInterface
 * @date 2017/6/29
 */
public interface OperatorCitiesServiceInterface {

    /** 
    * @Title: saveCities
    * @Description: 新增/修改 城市
    * @param：OperatorRoundPhoto   
    * @return OperatorCities    
    * @throws 
    */
    OperatorCities saveCities(OperatorCities operatorCities);

    /** 
    * @Title: getAllCities
    * @Description: 查询所有城市
    * @param：void  
    * @return List<OperatorCities>   
    * @throws 
    */
    List<OperatorCities> getAllCities();

    /** 
    * @Title: getAllCitiesByPage
    * @Description: 查询全部城市并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorCities>   
    * @throws 
    */
    Page<OperatorCities> getAllCitiesByPage(Integer page, Integer size);

    /** 
    * @Title: deleteCitiesById
    * @Description: 根据Id删除城市 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteCitiesById(String id);

    /** 
    * @Title: getCitiesById 
    * @Description: 根据Id查询城市
    * @param： String id
    * @return OperatorCities    
    * @throws 
    */
    OperatorCities getCitiesById(String id);

    /** 
     * @Title: countAllById 
     * @Description: 根据Id查询城市
     * @param： String id
     * @return Integer    
     * @throws 
     */
    Integer countAllById();

    /** 
     * @Title: getAllCitiesByProvinceCode
     * @Description: 根据省份查询所有城市
     * @param：String provinceCode  
     * @return List<OperatorCities>   
     * @throws 
     */
    List<OperatorCities> getAllCitiesByProvinceCode(String provinceCode);
    
    OperatorCities getCitiesByCode(String code);

}
